From: Jonas Dreßler Date: Tue, 8 Mar 2022 11:55:00 +0000 (+0100) Subject: magnifier: Update zoom region right after enabling the magnifier X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~480^2^2~95 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7bf8f40c84e7fb697f39b145252a7467cbb2ab73;p=gnome-shell.git magnifier: Update zoom region right after enabling the magnifier We want the zoom region to always be where the mouse cursor is, so make sure to update it initially, too. Part-of: --- diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js index 0585e8812..8ff062ba1 100644 --- a/js/ui/magnifier.js +++ b/js/ui/magnifier.js @@ -215,6 +215,8 @@ var Magnifier = class Magnifier { if (!this._pointerWatch) { let interval = 1000 / 60; this._pointerWatch = PointerWatcher.getPointerWatcher().addWatch(interval, this.scrollToMousePos.bind(this)); + + this.scrollToMousePos(); } }